package org.example.game.entity;

import java.awt.*;

public class Wall extends GameObject {
    private static final int WALL_SIZE = 40;

    public Wall(int x, int y) {
        super(x, y, WALL_SIZE, WALL_SIZE);
    }

    @Override
    public void draw(Graphics g) {
        g.setColor(Color.GRAY);
        g.fillRect(x, y, width, height);
        
        // 添加砖块纹理
        g.setColor(Color.DARK_GRAY);
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                g.drawRect(x + i * (width/2), y + j * (height/2), width/2, height/2);
            }
        }
    }
} 